using System;
using System.Collections.Generic;
using System.Text;

namespace SqlTools.SchemaReader
{
	public class PrimaryKey : Index
	{
		public PrimaryKey() : this("", 0, null) { }

		public PrimaryKey(string name, int id, Table table)
			: base(name, id, table)
		{

		}

		public override DbObjectType Type
		{
			get { return DbObjectType.PrimaryKey;  }
		}

		public override void LoadXml(System.Xml.XmlElement el, Database db)
		{
			base.LoadXml(el, db);

			db.PrimaryKeys.Add(this);
		}
	}
}
